binary search the routes table