subset sum: working