basic SVM classifier with SMO