Using average sizes for variable fields

All of the formulas use the maximum size of the variable-length fields.

optdiag output includes the average length of data rows and index rows. You can use these values for the data and index row lengths, if you want to use average lengths instead.