initial implementation of MemSamPe