added modified levenshtein distance

wasn't 100% done with tests and doc, but in case you want to merge it before I'm back