Parallel Computing + foreach to change cell values of a matrix