add subset sum and tsp