Using residues coevolution to search for protein homologs through alignment of Potts models