cache the inverse of a matrix to avoid repeatedly computing