See http://en.wikipedia.org/wiki/Bully_algorithm.