AVL tree, rewrite from binary node