Swap left and right branches