Word-level Markov chains in C