move HMM into its own file
somewhat converging, but to the wrong number of states...