untangle_step_rotate_both_side function

Stepwise untangle two trees at the same time