Write code to partition a linked list around a value x, such that all nodes less than x come before alt nodes greater than or equal to x.