Control of Rydberg atoms to perform Grover's search algorithm