Matlab Simulation Of Social Structures