* fixing viterbi decoding