Ruby Markov Chain Generator