Commented greedy_by_order.py