Add nearest neighbor function to octree.

Compiles but not yet tested.