make n-fold cross-validation parallelizable