PENCIL: Long Thoughts with Short Memory