MongoDB-like implementation in memory using C#