cache inverse matrix