simple bitset  using logic operations

Signed-off-by: Wei Jin <wjin.cn@gmail.com>