add greedy algorithm