Implement MasterElection

added