Added next and prev trie methods