Modified printMemoryMap().