Add rotation functions to RBTree.