init hmm