Make histogram use upper_bound - return first element strictly greater than val.
So a val equal to a boundary is added to the cell coresponding to the next boundary.
So val goes into i+1 when bin[i] <= val < bin[i+1].
Add one to num cells in the tester.  Comment out gen() output.