WorldPeace greedy algorithm