Add the implementation for makeCacheMatrix and cacheResolve functions.