SMS: Bayesian inference of ancestral recombination graphs