Viterbi algorithm questions