cached inverse of a matrix