lr working kdtree/tracer