histogram.m update with sortrows()