add PartitionProblem.java class