MAP Estimation Via Agreement on Trees: Message-Passing and Linear Programming | Synapse