Adds sample leader election algorithms.