homegrown multiclass svm