Trie improvements

Add more constructors for Trie and an iterator for accessing the nodes visited in a search traversal.