Added new functions to the list to better handle the hash table and the tree structure, which depend on the list.