Some suggestions

I haven't read much of the trie code and the main program so far.

It'd help to have a switch to set the random seed, for testing.