Implements the new U-turn shorten function in Barefoot 0.1.5.
Implements the new U-turn shorten function in Barefoot 0.1.5.