added possibility to start from a random initial distribution in the MW alg.