A light scale hmm library