Matt Damon to buy borough’s priciest pad in Brooklyn Heights