updating hidden markov model object.