Algorithms DP and IDP for generating and solving Coalition Structure Generation Problems