partition a LL around a value x