A C99 quadtree implementation