Simple Quadtrees in C