print_matrix: handle zero valued cells