Algorithms and data structures for partitioning and management of sets of hyperrectangles