Added the LineUp algorithm.