Modified single threaded code to mimic pollard_internet.
 - copied over to multithreaded