QuadTree implementation in Objective-C