Algeria beats South Korea,to stay alive in World Cup group