Stochastic Blockmodels related algorithms