change logprobs into 3d numpy array
implement cython version of emission log prob computation