workinprogress with K-nearestneighbor search.

also added new class NoneNN (for nearest neighbor node)