Add partition_vertical external function.