Learning Temporal Nodes Bayesian Networks