Bayesian inference for change--point problems