Added QuadTree for task C2 and C3