Thinking Fast and Slow in Human and Machine Intelligence