updated train.cpp in hmm_continuous