Retrieval-of-Thought: Efficient Reasoning via Reusing Thoughts