Implement makeCacheMatrix() and cacheSolve()