Bully algorithm