Hidden Markov Models and Dynamical Systems