Pitt reaches agreement to buy PAA building