add rowSums and colSums