Sample sourcecode for some of the Dynamic Programming Problems