a  memorymanager  by tomliu