added viterbi alignment