Similar Items: Design of alternating gradient quadrupole lenses