latent structured svm code