exact_prediction_step function

Performs exact inference in a time slice of the dbn