Implemented creating edges in KDTree sequentially
: