added separate method for adding in ordered trie