Improved bin size estimation