[get_left_turns] reimplement using integer arithmetic
including unit test