Added methods in Viterbi

Added methods in Viterbi