An Efficient Fault-Tolerant Routing Methodology for Meshes and Tori