Create Triangle(DP version)