An efficient approach to the protein structure alignment problem