Create a 2D array, calculate sums of rows/cols/diags