- Added Apache Lucene OpenBitSet and BitUtil classes. Will be using them later instead of Java's regular BitSet.
- Added clear() method to the bit set so you can clear it all with one call implemented as a simple loop.
- Replaced usage of Java's BitSet for OpenBitSet.
- Replaced a few calls with OpenBitSet's fast variants. Also replaced backward iteration with forward once since it has less branching on OpenBitSet.
- Trimmed a bit 'isInteresting(Entity)' method thanks to BitUtil's intersection tests.
- Removed all operations that used longs to count or index bits, they use ints now. So now the word limit of the bit set and bit operations is (2^31/64), which amounts to 256Mb long bit sets. Previously it supported 16Gb bit sets, totally overkill for our purposes.
- Removed growIfNeeded() method. Placed its logic on ensureCapacityWords and fixed it since it was using incorrect values (it wouldn't resize if you passed exactly the size of the array as index if for example).
Close branch newbitset-exp.