KD -tree C언어로 구현하는데 있어서
typedef struct _node
{
    int x_node;
    int y_node;
    struct _node *left;
    struct _node *right;
}node;

이런식으로 노드가 정해져있을때 어떻게 해야지 레벨별로 x_node 비교 다음 레벨에서는 y_node 를 비교 할수 있는 것인지???