EditDistanceEDA: Change the compare method