fit_dbn_params function

Fits a markovian n DBN model