Update SVM implementation.