determine_sides function

Determine which side of a line each point is on