all bits combinations according to mask