changed initialisation of the rnd engine and used mt19937
Merge branch 'master' into parallel