add dynamic  programming examples