After using a brain scanner to test volunteers' ability to find creative solutions to problems, scientists at Harvard University have worked out how to measure the flexibility of someone’s thinking.