Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.