add rb tree definition