Create object that stores a matrix and caches its inverse