bug fix in HMM.viterbi()
bug fix in HMM.viterbi()