implement fast viterbi score of fixed alignment