Update greedyProgramming.py