Merge bins with weighted values

For #9