Implementation of traceroute using binary search