Revised assignment 2

Completed code to cache inverse, recall it and calculate it if not available.