orientation of contour with tests added
contour contains point added