AnO(n logn) algorithm for the all-nearest-neighbors Problem

AnO(n logn) algorithm for the all-nearest-neighbors Problem