--- from: http://rosettacode.org/wiki/Zig-zag_matrix note: Matrices