Update alg1.h

MIN and MAX both work. PathReward does NOT work.