function for adding layers dynamically
a new kernel that can add an extra layer with a class function that generates the neighbor polygons of either the outmost layer or a set of polygons provided by the user
a new kernel that can add an extra layer with a class function that generates the neighbor polygons of either the outmost layer or a set of polygons provided by the user