adapted to new configurationPossibilities
generate ids for higher dimensional MatchingItems