Implement the reorganization of treetextualmemory. ### Sub-tasks - [x] [#246 ] feat: add memory confict detector. - [x] [#247] feat: add memory confict resolver.