Use Matrix.ImportRows to join new_x instead of manual copying element by element