Add GreedyAlgorithm.