generate markov chain in ga