Exact Riemann Solver Matlab Code