Is this based on [Speeding Up Double-Array Trie Construction for String Matching](https://link.springer.com/chapter/10.1007/978-3-642-35795-4_72 ) or something else?