Finding out whether a point is inside a polygon