Implement makeCacheMatrix