rename octree to kd, add comments, encode axis