add profile
remove kdtree for slow, usr spatialpartition