updated Truple.cpp and Truple.h