kd-tree: max_depth