Dynamic Structure Adaptation For Communities Of Learning Machines