Update in smart laplacian.
Performance improvement in quality function.
Clean up in get_polygon function.
Clean up in the get polygon functions.
More clean up in the get polygon functions. Made the get_polygons function general such that it can return an arbitrary number of polygons given an edge.