Human and Machine Thinking