I am trying to insert distinct elements into a matrix. To do so I create an array of [rows x columns] dimension and place there each element I insert into the matrix and right after that read the array and if an element of the matrix is the same as one in the array make the user reintroduce the I am trying to insert distinct elements into a