cs50 greedy source code

requires cs50.h