Fixed merge fuckfest and added greedy algo.
derp