Create print_all_partitions.cpp