Working version of cython-hmm, but for only one training sequence.