ADD: Implemented the required methods makeCacheMatrix() and cacheResolve().