Dictionary genetaror based on suffix automaton

```
Node* node1, node2;
std::tie(node1, node2) = q.front();
```