PHP Implementation of QuadTree datastructure