linked list: cleanup in find_kth_element