Go implementation of Markov chains