naive svm implementation works with qp