Some changes in SVM implementation