Memex: Persistent Semantic Memory for AI Agents