Determination of protein structure and dynamics combining immune algorithms and pattern search methods