add dynamic programming directory and its related code