Proper point in poly algorithm