partition_tree