finished trie implementation, finished tests for that