pub fn speculative_execute<T, R, F>(items: &[T], f: F) -> Vec<R>where T: Sync + Clone, R: Send + 'static + PartialEq, F: Fn(&T) -> R + Send + Sync + Clone,
Parallel execution with speculation (try both parallel and sequential)