Add svm algorithm code