pub fn parallel_partition<T, F>(items: &[T], predicate: F) -> (Vec<T>, Vec<T>)where T: Clone + Send + Sync, F: Fn(&T) -> bool + Sync + Send,
Partition elements based on predicate (parallel)