completed kdtree insert. fixed Recthv import