Implemented makeCacheMatrix