Added greedy algorithms