cache inverse matrix operation