Two goals from Riyad Mahrez and a late Ibrahim Maza strike gave Algeria a dominant 3-0 win and sent them top of group E.