Added python implementation for greedy problems