Updates to hashmap and singly linked list