memory leaks
bin specification takes x of 2^x for multiplier
print out statistics
use ilogb instead of log2