viterbi removed beam search