SIFT string distance algorithm