new function: comparing two polygons are equal?
new feature: compare two patterns