Structured SVM working for structured multi-class problems