Advanced data structures in C#