ShortBitVector: made optimizations in release mode and changed more functions to inline.