naive implementation of SVM