solution to the assignment with example session in comments of how to test cache a matrix and caching the inversion in the cached object.