viterbi to return label