added input from keyboard to have the matrix size, and correct matrix
display/creation