Renamed memo algorithm to dyn_prog.
Also fixed a memory access violation.
Merge pull request #11 from dstar4138/master

Renamed memo algorithm to dyn_prog.