Create triangle.cpp

Dynamic Programming. Better replay.