Nearest-neighbour calculation with circular coords corrected.