Implement MasterElection

Shouldn't be a reference, here, should be the actual thing (the ```const``` is fine, of course).