Caching and Scoping

Cache Inverse of Matrix functions