Bain buys Pri-Med