Add memento and undo/redo queue to support undo and redo operations.