print_matrix now works with the new matrix list