Belief propagation, robust reconstruction and optimal recovery of block models | Synapse