Rapid Beam Ejector for the Cosmotron