Fixed issue with print_matrix() throwing an exception on a matrix with values <= 0