pub fn parallel_map<T, U, F>(items: &[T], f: F) -> Vec<U>where T: Sync, U: Send, F: Fn(&T) -> U + Sync + Send,
Simple parallel map function that returns Result type