Adding the two functions that allows caching the inverse of a matrix