Ported Polygon->is_counter_clockwise() and rearranged code in .cpp files