is_partitioned, partition, partition_point, stable_partition, and tests