fixed learning DBN
Merge pull request #14 from snurkabill/dbnLearning

fixed learning DBN