NearestNeighbourQuery implemented