started code for hmm based alignment