Routing algorithms for Clos networks in SONET/SDH digital cross-connect systems