pair of function to cache inverse of square matrix