Implement an O(n) algorithm to find the Kernal of a simple polygon.
The algorithm comes from Lee, D. T., & Preparata, F. P. (1977). An Optimal Algorithm for Finding the Kernel of a Polygon (Vol. 783). ILLINOIS UNIV AT URBANA-CHAMPAIGN COORDINATED SCIENCE LAB.