Programming Assignment 2: Caching inv of matrix soln