[core] KD Tree prototype