kdtree: Add proper enrichment.

Halves query time (which still suffers from value indirection in
nodes), and improves accuracy in most (but not all) cases.
kdtree: Add pruning.

Reduces quality by ~0.6% for a ~25% improvement in matching speed.