Bitmap (bitset) Ruby implementation