An Effective Algorithm Based on Curve Fitting for Measuring Protein Structure Similarity ∗