structural svm with clustering