Matrix reduction using the strongly connected components of a digraph | lit.salon