A simple bitmask library