Added module for sampling using the M&M algo