flatten arrays of SUMX2MY2