bigram HMM training and decoding