Metrics on the basis of optimal alignment of biomolecular sequences