adding dynamic programming programs