I have now done the code for customising the log base for the size calculation, but this requires doing two log calculations per call rather than one. The sizes can be cached but in grid based mode it has to use an unordered_map to fetch some of the cached sizes which means it runs slightly slower than before. However, hopefully I will be able to make some changes to how the grid based system works, if it can be made much faster overall then the difference in the size calculation won't matter much.