Minor adjustment to MarkovChain class to fix a bug.