switched to dict implementation of markov chains
finished dict implementation