Partition singly-linked list