copy from bitbucket
Expose words
Expose to allow the use outside of the package for trie
test for new neighbours fn.
expose for use outside of package
refactor first letter creation to enable recursion in trie.
typo
Refactoring for ease of comparison / testing
optimize slightly the look up of the segments