SJ: implemented the pointsWithinAConvexPolygon