Made max flow code more efficient; added SRMs 591-594.