Updated functions that provide the inverse matrix operation, from cache if available