Using a kd-tree (for common multi-dim queries)