REFACTOR: polygon contour
ADD: polygon contour likelihood & optimization