Quantum search with two-atom collisions in cavity QED