Add greedy algorithm