Design and cost optimization for hierarchical data. (27th March 2014)