1. 左旋
    1. void L(node* &root){
    2. node* temp = root->rchild;//先存右孩子
    3. root->rchild = temp->lchild;//再把右孩子的左孩子存为右孩子
    4. temp->lchild = root;//然后再让自己成为右孩子的左孩子
    5. update_height(root);
    6. update_height(temp);
    7. root = temp
    8. }
    1. 右旋
    1. void R(node* &root){
    2. node* temp = root->lchild;
    3. root->lchild = temp->rchild;
    4. temp->rchild = root;
    5. updata_height(temp);
    6. updata_height(root);
    7. root = temp;
    8. }