Modify linked list when inserting a node into or removing a node from the