Dutch partitioning problem