Completed assignment, including the comments to the functions
Added the comments for the cache solve function