svm model train and test implementing