Draft solution for the partition problem