Add dynamic programming permutations