implemented suffix trie. added tests.