Iterative preorder for search works
kd_2dtree: more C style