Trie-based text indexer written in Scala