KdTree: timing/ correctness passed on nearest