Added main.cpp for triangles