sending and visualizing the matrices with some errors
recursive function that reads and plots matrices