A markov text generator in R and C++