Greedy algorithm up and running!

Also, corrected small changes.
3.006318 on Kattis