read_square_matrix method tested.