Added additional logic, passes all IntHistogramTests