Corrected a mistake in Leader Election
Code to prune branch