Map Reduce implementation in C#