Update histogram