Adding reduce to Distribution, superficial changes ddSim and mdPp.