Made the add method on the TrieNode more efficient.