started implementing algorithm to detect  point in polygon