Hmm (hidden Markov model) algorithm library