Added psuedo-polynomial time solution for the constrained partition problem