Hidden Markov Model in Latex