Numerical simulation of hypersonic magnetohydrodynamic flows