Inverse Matrix caching

Implementation Inverse Matrix caching for Programming Assignment 2