Create greedy.cpp

Greedy algorithm in C++