Implemented VirtualMemory serialization