add ant.cpp and triangle.cpp