implemented comparison between kd-tree and range-tree