Calculates the Levensheit distance between two strings