Bidimensional allocation of seats via zero-one matrices with given line sums