this a implemented discription of minimu_edit_distance by JAVA