CW-Complexes of Cartesian Grid Partitionings