Inference from Matrix Products: A Heuristic Spin-Glass Algorithm | Synapse