RBTree's c++ implemention
RBTree<int> *tree = new RBTree<int>();
// The type of x equal to Initial type
tree->insert(x);
// x is the key that you want to find
// it will return the point of the node (key is x) if x exist
Node<int>* p = tree->find(x);
// it will show info of the current rb tree
tree->print();
// it will delete the node that has value of x in the tree
tree->erase(x);
// it will delete all nodes of the tree
tree->clear();
delete tree;