Cognitive complexity and the learning of balanced and unbalanced social structures.