added nondeficient Viterbi mode