hmm based alignment - initial idea - very unfinished