prelim definitions for memory and array
Merged