Inverse Parametric Alignment for Accurate Biological Sequence Comparison