functions for computing and caching inverse matrix