Performance Analysis of Wormhole Switching with Adaptive Routing in a Two-Dimensional Torus