fixed chordfree calculation with better ccw algorithm