CTX: AI Cognitive Version Control for Agent Reasoning & Memory