Update src/triel.h

Correction of algorithm