Implemented skeleton code

The code was stubbed and this now implements that code for
caching the inversion of a matrix.