Greedy done.
Fixed merge fuckfest and added greedy algo.