viterbi example completed