Added function to do either k-fold or hold m out cross validation on the given trajetories by training an hmm on the training set and using a linear classifier on the test set.