Adds tricksy dynamic programming problem