Query Workload-Aware Index Structures for Range Searches in 1D, 2D, and High-Dimensional Spaces