Added dynamic programming tree