Multi-dynamic Bayesian Networks