Efficient representation of multidimensional data over hierarchical domains