Partition around x

partition around x with all nodes less than x  before all nodes greater
than x