added kd_tree2