A simple Bayesian approach to tree-ring dating