codeskulptor implementation of memory