Personality types and cognitive functions