Implemented inverse matrix cache