adding svm code