Fixed print_matrix, everything working