KDTREE with runtime error
halfass kdtree
fixed conflicts