initial refactoring into bender library format
initial code improvements to pass jshint recommendations
updated Trie to pass tests