working version of mc using stl implementation of the mersenne rnd
generator.