Added partition method.

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