Cognitive characteristics and homosexuality