Adding SVM code