add Triangle.cpp in both directories