Added a greedy algorithm

The proposed greedy algo is not optimal.
Added a counter case as well.