Added copy constructor for k-d tree