Algeria beat DR Congo in extra time and will face Nigeria on Saturday in the quarterfinals of the Africa Cup of Nations.