completed MLClassification::performCrossValidation