inline and comment
better kdtree trace code
kdtree with pointer