Code to support a tutorial on Dynamic Programming.