Started assignment one.
Mostly done with assignment one, but am running into errors with realloc
asking for too much RAM on extremely large inputs.
I think this is because the program is caching too many values.