Multiple subset sum problem