Pakistan, Algeria Agree to Fight Terrorism