Sum a two-dimensional array.