Solution

Code to cache matrix inverse computations