simple nth-order Markov chain text generator