numtri.cpp added