Geographic/metric data structures and algorithms