Generic quad tree implementation in C#