K's changes for a balanced svm for BOW