Added viterbi method to HSMM