add Jaccrad function, optimize EditDistance function