Ivory Coast fought back from two goals down to draw 2-2 with Algeria in an African Cup of Nations Group D dead rubber in Rustenburg.