Import word-trie, a library that implements a finite trie over words

This will be needed as a dependency for Yi when the new stable version comes out.