Create Markov Chain in Contingency Tables