Add svm method with libsvm lib