Modified rebin() to allow for rebinning factor
Modified logrebin() to allow for logarithmic rebinning factor
Version 0.2.2