implemented qp problem of svm