HMM hidden Markov model implementation using Viterbi algorithm for inference. author Falcon Dai (dai@ttic.edu)