Added a method to add a layer to a quadtree