Reducing the steps of QuadTree