Made multiple changes - memoized greedy, wrote script, added time stuff