Minor changes to common trie exrcise.