Implement creation of memory store.