fix logic when searching for previously encounted patent numbers
remove <iostreams> from the file output
use C-style structs (no methods) in main loop for efficiency