Added the files for pset 8 prob 1 to3

Could not solve the dynamic programming problem prob 4 and thus was
unable to solve the trivial problem prob 5