Added intersection contour generation code. Should be Order N complexity where N is number of contour points