using java. Compare ring election algorithm, include all the way, as far, alternate algorithm