A general approach to d-dimensional geometric queries | Synapse