Added set_Nsamples to Triplet class for debugging purposes.