More improvements:

1) Changing the loops that work with the lists to work with an unsigned long long instead of an unsigned int to allow for possibly larger files