Computation of range aggregates in multidimensional space