add dynamic programming cut rod