Move memory map to the top of the file