Partition a linked list around a value.