Parameter estimation methods, Hidden Markov models