Ch. 12. Applications of markov chains to the distribution theory of runs and patterns