Calculate the Sorensen-Dice or Jaccard similarity coefficient
Fuzzy index routine based on Smith-Waterman algorithm