Make MEMORY a class.

Protect against the compiler implicitly creating a copy constructor,
and/or an assignment operator.