Change-point problems: a Bayesian nonparametric approach