Update CalcHistograms.m