cache the inverse of a matrix