Fixed quadtree query bug, optimized computation of selected data