Changed the Hue distance calculation in tracking HSVColorCoherence

The hue color difference was not correct - it now properly chooses the correct direction in normalized (0-1) circular space. I just calculate both directions and choose the smaller one. Not very elegant, but at least it is correct.