On the Emergence of Thinking in LLMs I: Searching for the Right Intuition