reversing a singly linked list with only two pointers.