method for running cross-validation