Working on quadtree code