finished backward in svm with regularization