Add triangle cpp