This is a derived type for a bit array.
It is a constructor of a bit array
It converts bit array into a int value.
It converts NOT operation for all bits in a bit array.