Move trieComplete and trieWalk to trie.c from its test.