Successive elimination algorithm