update FindIp to binary search