红黑树是一种自平衡的二叉搜索树,
//节点 struct node { enum Color { BLACK, RED }; int key; Color color; node *leftChild; node *rightChild; node *father; };
红黑树有左旋和右旋,与AVL类似