Adding first part of dynamic programming slides