iterating over 2d array: by row or by column?