add kdtree package, do some initial jobs