Thinker: Learning to Think Fast and Slow