added copy functions to KDNode class