NYC’s top contracts include triple-wide townhouse with basketball court; Mattress magnate finds buyer for One Beacon penthouse