Changes to mem

mem now holds pointers to Nodes.  This allows MT to modify the values in
the nodes.