A Simulator Application for Distributed Leader Election Algorithms