Methods for building libraries of peptide structures and determination of consensus sequences