Basic pointer-based implementation of Trie data structure.