Create function to determine inside or outside geofence

- function to determine whether point is inside or outside polygon
- use C syntax for all comments since this is C code.