To find all possible combinations of weights that can be measured from a given set of weights