working svm classifier, before kernel