added the cached inverse matrix calculator