Algorithms for generating and solving Coalition Structure Generation Probelmes