Bayesian multi-population haplotype inference via a hierarchical dirichlet process mixture