Subset sum problem bruteforce solver