A simple prefix tree structure also designed to output to LaTeX