exchange linked list by pointer