good implementtation for trie, but still working on suffix tree