A Bayesian Analysis For Change Point Problems