added functions for caching inverse matrix