Adding functions that cache or compute an inverse of a matrix