Thresholds for KdTree