SMS: Gibbs sampler for statistical multiple alignment