Added support for soft-margin SVM.