Inverse matrix caching functions implemented.