Unify decision criterion on whether to run KDTree over multiple threads