Change trie API.
Add pipeline abstraction.
Fix: prevent crash on empty line.