shortest Rotation
Util for finding the shortest path from the current rotated degree to the new degree.
Return
the shortest degree of rotation possible
Parameters
heading
the new position of the rotation
previous Heading
the current position of the rotation