Iterator difference now declared const.

stable_sort requires that the difference iterator
is declared const.