The Distance is calculated with the help of the levensthein algorithm. and the Results are stored in the pair form to make them easy to sort