change the implementation of MemNode into Map<MemGraph, ?>, to support the shared summary