found a SERIOUS BUG IN PMTK: hmm implementation should be done in log domain to prevent serious underflow in probability computation