Updated tree_rotation