set the row and col to zero when there is element is zero in that position