Similar Items: Automated Synthesis of Distributed Self-Stabilizing Protocols