Practiced SVM Implementation with cross validation