Implement makeCacheMatrix and cacheSolve.