Bitmask enumeration essentials