export bin_vector
test (randomized for now) for binning