CogGPT: Unleashing the Power of Cognitive Dynamics on Large Language Models