grid search uses multiple cores