verify bin count is <= maxBins not ==
ensure that the number of points in all bins is the number of points recorded (currently failing)
bump test to 1e6 data points and max bins of 10
fix bug in which data is lost when compressing bins not at the end of the slice
use const