> [...] in the final 8% a varied elasticity of the walls meant the poop would take shape as separated cubes.
Some bits of the colon walls stretch more than others to mould the poop into a square shape as it goes through. Sounds like they were stretching into a square shape to me.