rank_histograms.m