complete kd tree static buildtree