show_matrix with fixed withd so it prints out prettier
replaced errno_t with int