Changed rand() and mt_rand() so they output different random numbers when assigned to arrays
Improve temporary elimination mechanism for matrix operators