No need to swap pointers since we determine left/right/to explicitly