Added hist-matrix.pl to generate histogram matrices