Update greedy.c