Glimm-Godunov's method for cosmic-ray-hydrodynamics