Initial implementation of the cached matrix operations.
Correct the inverse cache operation.