Tweaked redimension
Improved redimension auto chunk size selection