Finished homework 8
Finished memoized version
Cleaned up formatting, ready to submit
memoized version now only writes memo if necessary