fixed the traceroute code, now can handle infinite loop due to timeouts