added two dynamic programming problems