Cubing Algorithms for XML Data