HPCC-12603 Minor optimizations and introduce bits_t to IBitSet

Also use __builtin_ffs to remove a loop

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Inconsistent brace/spacing introduced..
I'd change all in method to newline + brace, along with this change.