added matrix_size_per_process function, var rng seed