Added pair of function to cache inverse matrix