Hue snapping function.
hue snapping function is now used for all route comparisons.