Straightforward implementation of the exact pairwise nearest neighbor (PNN) algorithm takes (O3) time