Add solution for viterbi decoding