Simple getNodesToSwap() with 1 directional search, needs refactoring