HPCC-12452 Allow configurable bucket sizes for the heap allocator

* Using a lookup table generates more efficient code, and is more flexible

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
I think you're missing initializing numDirectBuckets to 0 for this check to work