Added kd_tree deconstructor