The structure of a Markov chain