Viterbi bug fix, also does insertions