Alternating-offers bargaining in one-to-many and many-to-many settings