extend the logarithmic parter to calculate automatic partitions for huge ranges