Got canonicalize cube working. Constructed indices necessary for merging data cubes.