new functions operations for linked list and hash map