corrected algorithm to find a missing integer in a set of 4 billion integers