solving an inverse matrix, using the superassignment for caching