Traffic flow prediction using variable structure dynamic Bayesian network