Harten-Lax-van Leer Riemann solver for 1D hydrodynamics