impl on Trigram HMM