memory-store.js implemented as double linked list