Cleaning linked list remove method