Literary couple buys Brooklyn Heights brownstone