Improved error detection in benchmark mode
Corrected rare corner case when table size if very small
slightly improved speed with GCC