Data source: http://rosettacode.org/wiki/Munching_squares
