add cross validation for svm