markov chain in go