Addition in rows and columns