Add a dp solution.