Simple C# stack implementation