Added methods in Viterbi