Fixed bug in viterbi.psm.