Create Hidden Markov Model