java and go implement of markov chain text generator