Implement makeCacheMatrix() and cacheSolve().