Working on interfacing the quadtree in c for better performace