Learning to Think in Circles