Making Trie functions more elegant, using some pointer arithmetic.