simple implementation of the briandais and the hybrid lexical tries and their functions