A novel algorithm for solution of a combinatory set partitioning problem