Implementing Deutsch–Jozsa Algorithm in Cavity QED