Simple modification of the guard of a parameter in buildKDTree