Initial commit of inverse matrix cache code