Germany scores in extra time to survive vs. Algeria