IP range binary search