implementation of SVM Model