Code and data related to my thesis: Spontaneous Symmetry Breaking, Cognitive Limits and Society Complexity