Added cross validation for SVM