updated chmm.cpp with updated alignment code