pub fn parallel_for_each<T, F>(data: &[T], f: F)where T: Sync, F: Fn(&T) + Sync + Send,
Parallel for_each over a slice