Simplified point in polygon code.