Data source: http://rosettacode.org/wiki/Zig-zag_matrix
