QoS routing: Average complexity and hopcount in m dimensions