Remove C++0x dependence and improve code readability
Remove C++0x dependence by using MersenneTwister.h