fixed very old bug in linked_list's remove_first and remove_last