compute_diff_exp.BM function

Compute differences of expectations between node and parent.