first post of Kd-tree-exercise2