row_maxes and col_maxes, to store the maximum heights of each row and column respectively.row_maxes and col_maxes.total_increase to store the total sum of increases.row_maxes and col_maxes.total_increase.total_increase as the final result.