Design of primers for libraries