Integer variables estimation problems: the Bayesian Approach