Python d-dimensional range tree implementation based on Section 5 of Computation Geometry by de Berg, Cheong, van Kreveld, and Overmars.