hw3 trigram hmm