viterbi on the progress with beam search