Stochastic Blockmodel Approximation of a Graphon (MATLAB implementation)