Added the point in polygon algorithm