From an IntArray of values in the optional range start, end. Computes the Historiogram, and returns an IntIntMap mapping each different to the number of occurrences.