algo4: linkedlist: medium: Partition list