Email Record: An algorithm for identifying the ergodic subchains and transient states of a stochastic matrix /