Fix: The index must be non-negative value.
Implement simple double-array trie, but there are many bugs.