It's assuming they're all egoists. If you're not an egoist, you wouldn't need a complex solution to sacrifice the few to save the many.
I might be misunderstanding what you wrote, and if I have please correct me. You seem to be saying more than one egoist is needed for egoism to happen. This is not the case.
Today's post, Bayesians vs. Barbarians was originally published on 14 April 2009. A summary (taken from the LW wiki):
Discuss the post here (rather than in the comments to the original post).
This post is part of the Rerunning the Sequences series, where we'll be going through Eliezer Yudkowsky's old posts in order so that people who are interested can (re-)read and discuss them. The previous post was Collective Apathy and the Internet, and you can use the sequence_reruns tag or rss feed to follow the rest of the series.
Sequence reruns are a community-driven effort. You can participate by re-reading the sequence post, discussing it here, posting the next day's sequence reruns post, or summarizing forthcoming articles on the wiki. Go here for more details, or to have meta discussions about the Rerunning the Sequences series.