Propagation of M H D shock waves in homogeneous and non homogeneous media Explosion and implosion cases