Implement makeCacheMatrix()