2011 Hyundai Elantra Touring suddenly surges

Sudden surge of car when you stop or slow down causing the car to fly out of control made me have to torn off the ignition .this has happened several times , but this last time it caused us to have an accident!! Lluvkily no one else was around to be hurt or be smashed into