returned Viterbi since it doesn't compile