Update MemorySink.cs