Updated SVM solver