Create a new memory object with a given capacity.
new is guarded so that size must be a positive integer.
new creates a new memory structure with the given capacity. For
example, (new 30) creates a memory that can hold 30 elements. The
capacity of a memory is fixed througout its lifetime. The implementation
of new is private.