Bully algorithm implemented in Go