ready to compute viterbi.