Reverse the loop to find the exit condition in DOPAIR2() to go from the centre to the outside. Follows @jwillis' suggestion in #362