Ugh, took way too long to figure out the correct incantations for CNearTree...
Derp, forgot this.
Accelerated nearest neighbor queries.