implements BIT (contributes to #23)