create main memory

create main memory