util print_matrix added