stats, improved rebin, zlib support
bp best-fit rebin and regular