Converted contour list to linked hashset
Moved curve simplification into contour