use mclapply during cross-validation for resamling