[cg_level] added routine to calculate extreme space-filling curve id for grids on each process
moved some deallocations from grid to a cg_level_T bound routine