Initial import of the hist_equal function.