addition of fitHMM and simHMM