Fix usage of RangeConfidence
First and third template parameters of RangeConfidence was swapped at some
places of usage.
It did not cause any errors because the two types are identical in the
example, but the swapped identifiers were still conceptually wrong and
misleading.