Changed load_memory so that it will accept a FILE* for the input.
Adjusted the terminating condition to fetch the final accumulator value.