Changed TrieIterator

Added parent pointer.
Changed TrieIterator