enhanced subset-sum demo