Wrote two function for caching the inverse of a matrix