A better implementation of the C# .NET MemoryStream object.