add pred_node and next_node to each node in trie, in order to
accelerate iteration.
the idea worked well compared to old style iterator - iteration of the
whole trie was more than ten times quicker than before.