Added efficient comutation of likelihood in homogeneous markov chains.