First route along X-dimension, then route along Y-dimension.
Route along dimensions in the order of different bit positions of source and destination address.