v1.1
Improved distance calculation speed when a maximum cost is set.
- Reduced complexity from O(|s1|*|s2|) to O(max(|s1|,|s2|)*maxCost).
- Ignore maxCost when it would not help shorten the calculation.
Improved distance calculation speed when a maximum cost is set.